package com.huang.auth.integration;

import com.huang.auth.client.AuthUserClient;
import com.huang.base.AbstractIntegrationFactoryBean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author HuangShen
 * @Date 2022/3/4 16:50
 * @Describe
 */
@Component(value = AuthUserIntegration.BEAN_NAME)
public class AuthUserIntegration extends AbstractIntegrationFactoryBean<AuthUserClient> {

    public static final String BEAN_NAME = "authUserIntegration";

    @Resource
    private AuthUserClient authUserClient;

    @Override
    protected AuthUserClient getTarget() {
        return authUserClient;
    }

    @Override
    protected Class<AuthUserClient> getTargetClass() {
        return AuthUserClient.class;
    }
}
